﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UC_ProductList_Update.ascx.cs"
    Inherits="Stationery.UC.UC_ProductList_Update" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<table width="100%" cellpadding="0" cellspacing="0">
    <tr>
        <td align="right" style="padding-bottom: 2px;">
            <dxe:ASPxButton ID="ASPxButtonAdd" runat="server" Text="Thêm mới" AutoPostBack="False"
                OnClick="ASPxButtonAdd_Click">
            </dxe:ASPxButton>
        </td>
    </tr>
    <tr>
        <td>
            <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
                Width="100%">
                <Columns>
                    <dxwgv:GridViewDataTextColumn Caption="ID" VisibleIndex="0" Visible="False">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataImageColumn Caption="Hình ảnh" FieldName="IMAGE_DIRECTORY" VisibleIndex="1"
                        Width="60px">
                        <PropertiesImage ImageHeight="40px" ImageWidth="40px">
                        </PropertiesImage>
                    </dxwgv:GridViewDataImageColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Mã sản phẩm" FieldName="CODE" VisibleIndex="2"
                        Width="100px">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Tên sản phẩm" FieldName="NAME" VisibleIndex="3"
                        Width="200px">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Đơn giá/1 túi" FieldName="PRICE" VisibleIndex="4"
                        Width="100px">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Trọng lượng(gam)" FieldName="WEIGHT" VisibleIndex="5"
                        Width="140px">
                        <PropertiesTextEdit DisplayFormatString="{0:n0}">
                        </PropertiesTextEdit>
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Mô tả" FieldName="DESCRIPTION" VisibleIndex="5"
                        Visible="false">
                    </dxwgv:GridViewDataTextColumn>
                                        <dxwgv:GridViewDataTextColumn Caption="STT" FieldName="SEQUENCE" VisibleIndex="6" Width="40px"
                        Visible="true">
                    </dxwgv:GridViewDataTextColumn>
                    <dxwgv:GridViewDataCheckColumn Caption="Hiển thị" FieldName="IS_DISPLAY" VisibleIndex="7"
                        Width="60px">
                        <PropertiesCheckEdit DisplayTextUndefined="True" NullDisplayText="True" ValueChecked="T"
                            ValueType="System.String" ValueUnchecked="F">
                        </PropertiesCheckEdit>
                    </dxwgv:GridViewDataCheckColumn>
                    <dxwgv:GridViewDataTextColumn Caption="Chức năng" VisibleIndex="8" Width="77px">
                        <DataItemTemplate>
                            <table cellpadding="0" cellspacing="0" align="center">
                                <tr>
                                    <td>
                                        <a href="Admin.aspx?id=product&status=edit&id_product=<%# Eval("ID") %>">
                                            <img src="Image/Icon/edit.gif" /></a>
                                    </td>
                                    <td width="5px">
                                    </td>
                                    <td>
                                        <asp:LinkButton ID="LinkButtonDelete" runat="server" BorderStyle="None" CommandArgument='<%# Eval("ID") %>'
                                            OnClick="LinkButtonDelete_Click"><img src="Image/Icon/delete.gif" /></asp:LinkButton>
                                    </td>
                                </tr>
                            </table>
                        </DataItemTemplate>
                    </dxwgv:GridViewDataTextColumn>
                </Columns>
                <Settings ShowFilterRow="True" />
            </dxwgv:ASPxGridView>
        </td>
    </tr>
</table>
